package com.toefl.speaking.activity;

import android.os.Bundle;

import com.toefl.speaking.R;
import com.toefl.speaking.activity.base.BaseActivity;
import com.toefl.speaking.business.QuestionBusiness;
import com.toefl.speaking.business.QuestionUserBusiness;
import com.toefl.speaking.dao.bean.QuestionBean;
import com.toefl.speaking.dao.bean.QuestionUserBean;

public class MoreActivity extends BaseActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.context = MoreActivity.this;
		super.onCreate(savedInstanceState);

		setContentView(R.layout.more);

		QuestionBusiness questionBusiness = new QuestionBusiness();
		QuestionBean question = new QuestionBean();
		question.question_id = 1;
		question.question_content = "ccccccccccccccccccc";
		question.question_title = "bbbbbbbbbbbbbbb";
		question.question_type = 1;
		questionBusiness.updateCustomer(question);
		// boolean a = questionBusiness.saveUpdateCustomer(question);
		// System.out.println(a);
		// QuestionUserBean questionUser = new QuestionUserBean();
		// questionUser.question_id = 111;
		// questionUser.uesr_id = 222;
		// questionUser.question_user_audio_path = "path";
		// QuestionUserBusiness.saveAudio(questionUser);
		// RegisterHandler registerHandler = RegisterHandler.instance();
		// Register register = registerHandler.getRegister();
		// register.setDeviceToken("asdasdfadsf");
		// register.setEmail("11212da23@adsfas.com");
		// register.setPasswd("asdfewe123dsf");
		// register.setUserName("13dw232231sds");
		// try {
		// String result = registerHandler.postRegister(register, MoreActivity.this);
		// System.out.println(result);
		// } catch (Exception e) {
		//
		// }

		// AuthHandler authHandler = AuthHandler.instance();
		// Auth auth = authHandler.getAuth();
		// auth.setDeviceToken("123123213");
		// try {
		// String rueslt = authHandler.postAuth(auth, MoreActivity.this);
		// authHandler.getAuthResponseData(rueslt);
		// } catch (ClientProtocolException e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// } catch (IOException e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// } catch (JSONException e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// }
	}
}
